package org.example.tx;

import lombok.extern.slf4j.Slf4j;
import org.example.tx.acl.AclService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TxService {

    @Autowired
    private AclService aclService;

    public void read() {
        var acl = aclService.read(1);
        log.info("read {}", acl);
    }

    public void write() {
        aclService.update(1);
    }
}
